package com.lemo.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {


    @Bean
    public FunctionService get(){
        return new FunctionService();
    }

    @Bean
    public UseFunctionService useFunctionService(){
        UseFunctionService useFunctionService =new UseFunctionService();
        useFunctionService.setFunctionService(get());
        return useFunctionService;
    }


}
